package com.etung.iot.demo.modles;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("iot_alarm")
public class AlarmEntity {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String imei;
    @TableField("port_id")
    private Integer portId;
    @TableField("device_id")
    private Integer deviceId;
    @TableField("var_id")
    private Integer varId;
    @TableField("alarm_id")
    private Integer alarmId;
    private Integer type;
    @TableField("rule_exp")
    private String ruleExp;
    private String tip;
}
